import request from '../request/request';

/**百度推送*/ 
const baiduPush = () =>{
    let url = document.location.href;
    if (url.indexOf('localhost') > -1) return; // 本地环境不推送
    request({
        url : `/api/index/baiduPush?url=${url}`,
        method : 'post'
    }) // 请求百度推送
}

export default baiduPush;